$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .main {
    margin: 220/$f+vw 200/$f+vw 120/$f+vw 200/$f+vw;

    .links {
      display: flex;

      a,
      p,
      span {
        color: #B8B8B8;
        font-size: 24/$f+vw;
        text-transform: uppercase;
      }

      a {
        transition: all 600ms;

        &:hover {
          color: #E60012;
        }
      }

      span {
        margin: 0 1vw;
      }
    }

    .box {
      margin: 60/$f+vw 0 80/$f+vw 0;
      background: #F3F3F4;
      padding: 80/$f+vw;
      display: flex;
      justify-content: space-between;

      .l {
        width: 45%;

        .t1 {
          color: rgba(26, 32, 44, 1);
          font-size: 40/$f+vw;
          text-transform: uppercase;
        }

        .t2 {
          color: #000;
          font-size: 20/$f+vw;
          margin: 24/$f+vw 0 40/$f+vw 0;
        }

        .email {
          margin-bottom: 32/$f+vw;
          display: flex;
          justify-content: space-between;
          gap: 3%;

          .sr {
            width: 75%;

            input {
              width: 100%;
              display: block;
              background: #FBFBFB;
              outline: none;
              border: none;
              text-indent: 16/$f+vw;
              color: #B6B6B6;
              font-size: 20/$f+vw;
              padding: 20/$f+vw 0;
            }
          }

          button {
            width: 25%;
            background: #E60012;
            padding: 1vw 0;
            outline: none;
            border: none;
            cursor: pointer;
            color: #FFF;
            font-size: 20/$f+vw;
          }
        }

        .notice {
          color: #000;
          font-size: 20/$f+vw;
          margin-bottom: 60/$f+vw;
        }
      }

      .r {
        width: 45%;
        display: flex;
        justify-content: space-between;
        .k {
          width: 12/$f+vw;
          height: 12/$f+vw;
          border: 1px solid #000;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-top: 0.4vw;
          span {
            width: 9/$f+vw;
            height: 9/$f+vw;
            background: #F00;
            display: block;
          }
        }
        .des{
          width: calc(100% - 1vw);
          color: #505050;
          font-size: 20/$f+vw;
          line-height: 1.6;
          text-transform: capitalize;
        }
      }
    }

    .pro_box {
      margin: 3vw 0;

      .ptypes {
        display: flex;

        a {
          border-radius: 50px;
          background: #F6F6F6;
          color: #000;
          font-size: 20/$f+vw;
          font-weight: 500;
          padding: 16/$f+vw 20/$f+vw;
          min-width: 93/$f+vw;
          text-align: center;
          margin-right: 1vw;
          transition: all 600ms;

          &:hover {
            background: #E60012;
            color: white;
          }
        }

        .active {
          background: #E60012;
          color: white;
        }
      }

      .allItems {
        display: flex;
        flex-wrap: wrap;
        width: 105%;
        margin-left: -2.5%;

        a {
          display: block;
          width: 30%;
          background-color: white;
          margin-left: 2.5%;
          margin-top: 3vw;

          .pic {
            overflow: hidden;

            img {
              width: 100%;
              display: block;
              object-fit: cover;
              transition: all 600ms;
            }
          }

          .time {
            color: #626262;
            font-size: 15/$f+vw;
            margin: 1.2vw 0 .8vw 0;
          }

          .des {
            color: #000;
            font-size: 18/$f+vw;
            line-height: 1.5;
            transition: all 600ms;
          }

          &:hover {
            .pic {
              img {
                transform: scale(1.05);
              }
            }

            .des {
              color: #E60012;
            }
          }
        }
      }

      .pager {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5vw 0;

        .prev,
        .next {
          svg {
            display: block;
            width: 23/$f+vw;
          }
        }

        .nums {
          display: flex;
          margin: 0 1vw;

          a {
            color: rgba(139, 139, 139, 1);
            font-size: 20/$f+vw;
            padding: 0.1vw 0.5vw;
            margin: 0 0.2vw;
          }

          .active {
            color: #000;
            border-bottom: 2px solid #000;
            font-weight: 600;
          }
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 100px;
    .main{
      margin: 0 5%;
      .links{
        a,p,span{
          font-size: 16px;
        }
      }
      .box{
        margin: 20px 0 40px 0;
        padding: 30px 20px;
        flex-direction: column;
        .l{
          width: 100%;
          .t1{
            font-size: 18px;
          }
          .t2{
            font-size: 16px;
            margin: 10px 0 25px 0;
          }
          .email{
            .sr{
              input{
                font-size: 14px;
                padding: 10px 0;
                text-indent: 10px;
              }
            }
            button{
              font-size: 14px;
            }
          }
          .notice{
            font-size: 16px;
            margin-top: 10px;
          }
        }
        .r{
          width: 100%;
          margin-top: 20px;
          .k{
            width: 10px;
            height: 10px;
            margin-top: 5px;
            span{
              width: 9px;
              height: 9px;
            }
          }
          .des{
            font-size: 14px;
            width: calc(98% - 15px);
          }
        }
      }
      .pro_box{
        margin: 30px 0;
        .ptypes{
          flex-wrap: wrap;
          a{
            font-size: 14px;
            min-width: 80px;
            margin: 0 10px 10px 0;
            padding: 8px 10px;
          }
        }
        .allItems{
          width: 100%;
          margin-left: 0;
          a{
            width: 100%;
            margin-left: 0;
            margin-bottom: 20px;
            .time{
              font-size: 14px;
              margin: 15px 0 5px 0;
            }
            .des{
              font-size: 16px;
            }
          }
        }
        .pager{
          margin: 20px 0 60px 0;
          .prev,.next{
            svg{
              width: auto;
            }
          }
          .nums{
            margin: 0 10px;
            a{
              font-size: 16px;
              padding: 3px 5px;
              margin: 0 5px;
            }
          }
        }
      }
    }
  }
}